package com.ftg.product.exam.dto;

import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.ftg.product.exam.entity.BaseStudent;
import com.ftg.product.exam.entity.BaseClazz;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* 记录以及管理学员的基本信息 DTO定义
* @author kangjx
* @version 1.0
* @date 2021-01-15
 * Copyright © ftg
*/
@Getter @Setter @Accessors(chain = true)
public class BaseStudentDTO extends BaseStudent  {
    private static final long serialVersionUID = -7347743581643710809L;

    /**
    * 关联字段 BaseClazz.clazzname
    */
    @BindQuery(comparison = Comparison.EQ, entity = BaseClazz.class, field = "clazzname", condition = "this.classid=id")
    private String classidClazzname;
}